package com.gk.panda.apis.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gk.panda.apis.dto.PatrolmanSaveDto;
import com.gk.panda.apis.dto.PatrolmanSearchDto;
import com.gk.panda.commons.result.Result;
import com.gk.panda.pojo.Patrolman;

import java.util.List;

public interface PatrolmanService extends IService<Patrolman> {

    /**
     * 查询巡护人员名称列表
     * @return
     */
    List<String> listPatrolman();

    /**
     * 分页查询巡护人员信息列表
     * @param dto
     * @return
     */
    Page<Patrolman> pagePatrolman(PatrolmanSearchDto dto);

    /**
     * 添加巡护人员信息
     * @param dto
     * @return
     */
    Result<String> addPatrolman(PatrolmanSaveDto dto);
}
